/* Copyright (c) 2016-2020 Enfry Ltd. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Enfry. 
 * You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with Enfry.
 */
package com.enfry.storage.core.pool;

import com.enfry.storage.core.pool.StorageClient;

/**
 * 连接池接口
 * @Title com.enfry.storage.core.pool.Pool
 * @author liulei
 * @date 2016年7月25日
 */
public interface Pool {
    StorageClient getResource() throws Exception;

    void returnResource(StorageClient resource) throws Exception;

    void returnBrokenResource(StorageClient resource) throws Exception;

    void destroy() throws Exception;
}
